package decorator;

/**
 * @Author: 582895699@qq.com
 * @Desctription: 装饰器模式-装饰器
 * @Date: Created in 2021/12/29 11:08
 */
public abstract class Decorate extends Component {

    private Component component;

    public Decorate(Component component) {
        this.component = component;
    }

    @Override
    public void operate() {
        this.component.operate();
    }
}
